// 评议栏
let base = config.ip
let projectName = '/rcdg-record'
let projectName1 = '/topnet-assess'
import { get, post } from './http.js'

/************************* 评议栏 *************************/

// 评议栏--评议的详情页面
export const getGradeList = p => post(`${base}${projectName}/sa-comment-item/selectCommentBarDetails`, p)
// 评议栏--月度考核
export const getYearsList = p => post(`${base}${projectName}/sa-comment-item/selectCommentBarDetailsSecord`, p)

// 退回季度工作总结
export const returnQuarterRecord = p => post(`${base}${projectName}/record-base/returnQuarterRecord`, p)

// 获取评价指标体系
export const getAssessTarget = p => post(`${base}${projectName1}/sa-leader-assess/getAssessTarget`, p)
// 保存指标评价内容
export const saveAssessScore = p => post(`${base}${projectName1}/sa-leader-assess/saveAssessScore`, p)
// 获取打分详情
export const getAssessContent = p => post(`${base}${projectName1}/sa-leader-assess/getAssessContent`, p)
// 提交所有人员的评价信息
export const submitAllAssess = p => post(`${base}${projectName1}/sa-leader-assess/submitAllAssess`, p)
// 保存总分评价内容
export const saveSimpleAssess = p => post(`${base}${projectName1}/sa-leader-assess/saveSimpleAssess`, p)
// 主要领导获取人员列表
export const getUserAssessData = p => post(`${base}${projectName1}/sa-leader-assess/getUserAssessData`, p)
// 获取评价信息的提交问题
export const getCheckSubmitAllAssess = p => post(`${base}${projectName1}/sa-leader-assess/checkSubmitAllAssess`, p)
// 获取评议栏列表
export const getCommentData = p => post(`${base}${projectName1}/sa-comment-column/getCommentData`, p)
// 获取指定用户加减分列表
export const getCalcScoreByUserId = p => post(`${base}${projectName1}/sa-leader-assess/getCalcScoreByUserId`, p)
// 批量评分
export const getListAssessContent = p => post(`${base}${projectName1}/sa-leader-assess/listAssessContent`, p)
// 获取用户历史考核数据
export const getUserHistoryAssessData = p => post(`${base}${projectName1}/sa-leader-assess/getUserHistoryAssessData`, p)

// 选择本季度的好等次人数限制
export const chooseGoodConfig = p => post(`${base}${projectName1}/sa-assess-config/chooseGoodConfig`, p)

// 考核评分列表
export const getFirstAssessData = p => post(`${base}${projectName1}/sa-leader-assess/getFirstAssessData`, p)

// V2查询季度评价页周月纪实
export const getScoreSideBarRecordForm = p => post(`${base}${projectName}/record-base/v2/getScoreSideBarRecordForm`, p)

// V2查询评价页季总结
export const getScoreQuarterRecordForm = p => post(`${base}${projectName}/record-base/v2/getScoreQuarterRecordForm`, p)
